﻿#include "Game/BaseGameEntity.h"
#include <cassert>

int BaseGameEntity::m_iNextValidID = 0;

void BaseGameEntity::SetID(int newID)
{
	assert( (newID >= m_iNextValidID) &&"<BaseGameEntity::SetID>: 无效ID");

	m_ID = newID;

	m_iNextValidID = m_ID + 1;
}